import { defineStore } from 'pinia'
import { getUserInfo } from '@/service/module/user/user'
interface UserType {
  userInfo: any
}
export const useUserInfoStore = defineStore('useUserInfo', {
  state: (): UserType => ({
    userInfo: [],
  }),
  actions: {

    async getUserInfo() {
      const res = await getUserInfo()
      this.userInfo = res.data
    },
  },
})
